package org.yw;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.mail.SimpleMailMessage;

@SpringBootApplication
@EnableEurekaClient
public class AuthProviderApplication {

    @Bean
    public SimpleMailMessage getSimpleMailMessage(){
        SimpleMailMessage simpleMailMessage=new SimpleMailMessage();
        simpleMailMessage.setFrom("289228557@qq.com");
        return simpleMailMessage;
    }

    public static void main(String[] args) {
        SpringApplication.run(AuthProviderApplication.class, args);
    }

}
